package com.tanhua.domain.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * 好友关系表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "tanhua_users")
public class Friend implements Serializable {
    /**主键id*/
    private ObjectId id;
    /**用户id*/
    private Long userId;
    /**好友id*/
    private Long friendId;
    /**创建时间（加好友时间）*/
    private Long created;

}